from tkinter import *

root = Tk()

photo = PhotoImage(file='logo.png')
Label(root,image=photo).pack()

def callback():
    print('正中靶心！')

Button(root,text='点我',command=callback).place(relx=0.5,rely=0.5,anchor=CENTER)
                                       #place方法，相对父组件位置
mainloop()
